home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / relink.doc < prev    next >
Text File  |  1987-08-19  |  2KB  |  49 lines

  1. 8-21-87
  2.  
  3. This information is provided here since the main users manual was
  4. already finished when I decided to provide the batch files and
  5. library response files to allow remaking the libraries.
  6.  
  7. If you want to remake the entire library, the procedure can be
  8. automated with a series of batch files and librarian response files.
  9.  
  10. You will need, besides Datalight C of course, Microsoft MASM assembler and
  11. the LIB librarian utility which comes with MASM.
  12.  
  13. There are 4 batch files and 4 librarian response files:
  14.      MAKES.BAT    LIBS            Small memory model
  15.      MAKED.BAT    LIBD            Large Data memory model
  16.      MAKEP.BAT    LIBP            Large Code memory model
  17.      MAKEL.BAT    LIBL            Large Data & Code memory model
  18.  
  19. To remake the libraries, you will most likely need to be on a
  20. hard disk.  I don't think a dual floppy system can handle it all
  21. in one chunk.  If you have a floppy system, you will have to remake
  22. the library in pieces, bringing in only a few source files at a time.
  23.  
  24. On a hard drive, make a subdirectory and copy onto it all source and header
  25. files, plus the above named batch and lib* files from the "Steve's Library"
  26. distribution disk.  Make sure that this directory does NOT have the
  27. library files SMDL?.LIB!
  28.  
  29. Then, making sure that DLC*.EXE, MASM.EXE, and LIB.EXE are in your current
  30. PATH, simply execute each of the batch files.  They will recompile and
  31. reassemble each source files and then create a new library file from the
  32. OBJ files.  Copy the object files into the directory which has the Datalight
  33. library files, and then you can delete everything in the working directory.
  34.  
  35. If you choose to keep the working directory on disk, you can save space
  36. after remaking the files by doing:
  37.               erase *.obj
  38.               erase *.lst
  39.  
  40. The batch files and librarian response files are only supplied with
  41. full source registration.
  42.  
  43. As supplied, the batch files invoke the Datalight Optimim-C optimizer.
  44. If you do NOT have that program, the remove the "-o" option from each
  45. "dlc" line in every batch file.
  46.  
  47.  
  48. Steve Margison
  49.